﻿using ITXHWEB.Models;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Web.Mvc;
using WPFExcelReport;
using WPFExcelReport.Helpers;
using ITXHWEB.Infrastructure;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace ITXHWEB.Controllers
{
    public partial class WBFEHLController 
    { 
        [ChildActionOnly]
        public ActionResult PZJWB19X(string returnUrl)
        {
            ModelState.Clear();
            ViewBag.ReturnUrl = returnUrl;
            if(MABF.CWBB.CERK.CERROR==null)
            {
                StartNewError();
            }
            this.ViewData["list"] = ERKEYES;
            return PartialView(MABF.CWBB.CERK.CERROR);
        }
        [HttpPost]
        [AllowAnonymous]
        public ActionResult PZJWB19X(WBFEHLModel model, string returnUrl)
        {
            try
            {
                StartNewJob(model);//开始新疵点   
            }
            catch (Exception ex)
            {
                //ModelState.AddModelError("",ex.Message);
                Tracer.Error(ex.StackTrace, ex);
            }
            return RedirectToAction(MAPP, MAPP);
        } 
    }
}
